import getEnumsManager from '@/common/enum';

export const EnabledStateEnum = getEnumsManager([
  { value: '1', text: '可用', default: true, name: 'Enable' },
  { value: '0', text: '禁用', name: 'Disabled' }
]);

export const ValueTypeEnum = getEnumsManager([
  { value: 'L', text: '标签', name: 'L' },
  { value: 'D', text: '时间', name: 'D' },
  { value: 'V', text: '长文本', name: 'V' },
  { value: 'T', text: '短文本', name: 'T' },
  { value: 'N', text: '数字', name: 'N' },
  { value: 'P', text: '百分比', name: 'P' },
]);

export const AggregateTypeEnum = getEnumsManager([
  { value: 'NONE', text: '不统计', name: 'NONE' },
  { value: 'SUM', text: '累加', name: 'SUM' },
  { value: 'MAX', text: '最大值', name: 'MAX' },
  { value: 'MIN', text: '最小值', name: 'MIN' },
  { value: 'AVG', text: '平均值', name: 'AVG' },
]);

export const TemplateStateEnum = getEnumsManager([
  { value: '1', text: '可用', name: 'Enable' },
  { value: '0', text: '禁用', name: 'Disabled' },
  { value: '2', text: '草稿', name: 'Draft' }
]);

export const TaskStateEnum = getEnumsManager([
  { value: '0', text: '草稿', name: 'Draft' },
  { value: '1', text: '执行中', name: 'Progress' },
  { value: '2', text: '归档', name: 'File' }
]);

export const TaskTypeEnum = getEnumsManager([
  { value: '0', text: '单条数据', default: true, name: 'One' },
  { value: '1', text: '多条数据', name: 'More' }
]);

export const TaskObjectEnum = getEnumsManager([
  { value: 'O', text: '组织', default: true, name: 'Org' },
  { value: 'U', text: '人员', name: 'Person' }
]);

export const ReceiveStatusEnum = getEnumsManager([
  { value: '1', text: '已接收' },
  { value: '0', text: '未接收' }
]);

export const ReportStatusEnum = getEnumsManager([
  { value: '1', text: '已上报', name: 'Done' },
  { value: '0', text: '未上报', name: 'Wait' }
]);